.module {
  &-header {
    box-sizing: border-box;
    padding-top: $gutter-padding;
    margin: 0px $gutter-margin $gutter-margin $gutter-margin;
    box-shadow: 0px 10px 10px -5px rgba(0, 0, 0, 0.43);
  }
  &-footer {
    box-sizing: border-box;
    padding: $gutter-padding;
  }
  &-footer {
    margin-top: -24px;
  }
  &-title {
    font-size: $font-size2;
    line-height: 32px;
    display: inline-block;
  }
  &-footer {
    text-align: right;
    &-more {
      font-size: $font-size2;
      line-height: 32px;
      padding: $mini-padding $gutter-padding;
      border: 1px solid $border-color;
      border-radius: 16px;
      text-decoration: none;
      color: $color-mine-shaft;
      border: 1px solid $color-crusta;
      color: $color-white;
      background: $color-crusta;
      &:hover {
        border-color: $color-crusta;
        color: $color-crusta;
        background: $color-white;
      }
    }
  }
  &-body {
    box-sizing: border-box;
    padding: 0px $gutter-padding;
  }
  &-grid {
    &::after {
      content: " ";
      display: table;
      clear: both;
      visibility: hidden;
      font-size: 0;
      height: 0;
    }
    &::before {
      content: " ";
      display: table;
    }
    &-item {
      float: left;
      flex: 0;
      min-height: 1px;
      padding-left: 0;
      padding-right: 0;
      width: 32%;
      margin-bottom: 24px;
      & .module-item {
        box-sizing: border-box;
        position: relative;
        width: 100%;
        padding-top: 80%;
        display: inline-block;
        text-decoration: none; // border: 1px solid $border-color;
        box-shadow: 10px 10px 10px -5px rgba(0, 0, 0, 0.43);
        &-inner {
          position: absolute;
          top: 0px;
          left: 0px;
          right: 0px;
          bottom: 0px;
          & img {
            width: 100%;
            height: 100%;
          }
        }
        &-title {
          box-sizing: border-box;
          background: rgba(0, 0, 0, 0.5);
          position: absolute;
          padding: $gutter-padding;
          left: 0px;
          right: 0px;
          bottom: 0px;
          display: block;
          & p {
            line-height: 20px;
            color: $color-white;
            max-height: 40px;
            margin: 0px;
            padding: 0px;
          }
        }
        &:hover {
          & .module-item-title {
            display: block;
          }
        }
      }
    }
    &-item-margin {
      float: left;
      flex: 0;
      min-height: 1px;
      padding-left: 0;
      padding-right: 0;
      width: 2%;
      height: 24px;
    }
  }
  &-row {
    width: 100%;
    margin-bottom: 24px;
    &-item {
      $size: 200px;
      & .module-item {
        clear: both;
        height: $size;
        display: block;
        margin-bottom: 24px;
        text-decoration: none;
        border: 1px solid rgba(180, 180, 180, 0.43);
        box-shadow: 10px 10px 10px -5px rgba(0, 0, 0, 0.43);
        &-image {
          width: calc(#{ $size -10px});
          height: calc(#{ $size -10px});
          margin: 5px;
          display: block;
          float: left;
          & img {
            width: 100%;
            height: 100%;
          }
        }
        &-info {
          padding-left: calc(#{ $size + 20px});
        }
        &-name {
          padding-top: $gutter-padding;
          font-size: $font-size2;
          line-height: 24px;
          color: $color-mine-shaft;
        }
        &-desc {
          padding-top: $gutter-padding;
          font-size: $font-size3;
          line-height: 20px;
          color: $color-dove-grey;
          text-indent: 2em;
        }
      }
    }
  }
  &-footer {
    & .pager {
      text-align: center;
      clear: both;
      & .pager-item {
        box-sizing: border-box;
        height: $page-height;
        min-width: $page-height;
        line-height: $page-height;
        text-align: center;
        padding: 0px $mini-padding;
        border: 1px solid $color-crusta;
        border-radius: 4px;
        margin: 0px 4px;
        display: inline-block;
        cursor: pointer;
        &:hover,
        &--active {
          border-color: $color-crusta;
          background: $color-crusta;
          color: $color-white;
        }
        &--disabled,
        &--disabled:hover {
          background: $border-color;
          cursor: not-allowed;
          color: $color-sliver;
          opacity: 0.3;
        }
      }
    }
  }
  & .module-item-inner,
  & .module-item-image {
    background-image: url(../image/default.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover 100%;
    overflow: hidden;
  }
  & img:hover {
    width: 110%;
    height: 110%;
    margin: -5%;
    transition: all .6s
  }
}

@media screen and (max-width: 800px) {
  .module {
    &-grid {
      &-item {
        float: left;
        width: 49%;
        &-even {
          margin-right: 2%;
        }
      }
      &-item-margin {
        display: none;
      }
    }
    &-row {
      &-item {
        $size: 160px;
        & .module-item {
          height: $size;
          &-image {
            width: calc(#{ $size -10px});
            height: calc(#{ $size -10px});
            margin: 5px;
          }
          &-info {
            padding-left: calc(#{ $size + 20px});
          }
          &-desc {
            padding-top: $gutter-padding;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 600px) {
  .module {
    &-grid {
      &-item {
        float: none;
        width: 100%;
      }
      &-item-margin {
        display: none;
      }
    }
  }
}